﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="dat_phong_dang_ky.ascx.cs" Inherits="NGU.WUC.dat_phong_dang_ky" %>

<%@ Register Src="~/WUC/dat_tour_dieu_khoan_dang_ky.ascx" TagPrefix="uc2" TagName="dat_tour_dieu_khoan_dang_ky" %>
<div id="booking_steps">
    <ol>
        <li class="active" id="one">Đăng ký</li>
        <li id="two">Chọn hình thức
            <br />
            thanh toán</li>
        <li id="three">Xác nhận thông tin</li>
        <li id="four">Xác nhận của SunnyLand</li>
        <li id="five">Thanh Toán</li>
    </ol>
</div>
<!--frm-->
<div class="frm">
    <center>
        <pre></pre>
        <form id="Form1" name="Form1" method="post" action="/DatPhong.aspx?step=2" onsubmit="return validate()">
        <input type="hidden" value="<%=this.ncc.MaNCC %>" name="ncc" />
        <!-- thong tin tour -->
        <fieldset class="dk_phong_general_info">
            <legend>Thông Tin Đăng Ký</legend>
            <input type="hidden" name="txtbookid" value="" />
            <%
                for (int i = 0; i < this.roomLst.Count; i++)
                {
                    %>
                    <input type="hidden" id="price_<%=this.roomLst[i].LoaiPhong.MaLoaiPhong + this.roomLst[i].HangPhong.MaHangPhong %>" value="<%=this.roomLst[i].Gia %>"/>
                    <% 
                }
                 %>
            <div style="margin-top: 8px;">
            </div>
            <div>
                <label>
                    Khách sạn:</label>
                <span style="font-size: 20px; padding: 50px; color: #B62727; font-weight: bold">
                    <%=this.ncc.TenNCC.ToUpper() %></span>
            </div>
            <div>
                <label>
                    Loại phòng:</label>
                <span>
                    <select id="sel_loaiphong" name="loaiphong">
                    <%
                        for (int i = 0; i < this.loaiPhongLst.Count; i++)
                        {
                             %>
                             <option value="<%=this.loaiPhongLst[i].MaLoaiPhong%>"><%=this.loaiPhongLst[i].TenLoaiPhong %></option>
                             <%
                        }
                         %>
                    </select></span>
                    <br />
            </div>
            <div>
                <label>
                    Hạng phòng:</label>
                <span>
                    <select id="sel_hangphong" name="hangphong">
                    <%
                        for (int i = 0; i < this.hangPhongLst.Count; i++)
                        {
                            %>
                            <option value="<%=this.hangPhongLst[i].MaHangPhong %>"><%=this.hangPhongLst[i].TenHangPhong %></option>
                            <% 
                        }
                         %>
                    </select></span>
            </div>
            <div>
                <label>Ngày bắt đầu:</label>
                <span id="span_fromdate">
                    <input type="text" id="inp_fromdate" name="fromdate" value="<%=DateTime.Now.ToString("MM/dd/yyyy") %>"/>
                    <span class="style1" id="spanmsg_fromdate">(*)</span>
                </span>
                <span id="fromdate_msg"></span>
            </div>
            <div>
                <label>Ngày kết thúc:</label>
                <span id="span_todate">
                    <input type="text" id="inp_todate" name="todate" value="<%=DateTime.Now.ToString("MM/dd/yyyy") %>"/>
                    <span class="style1" id="spanmsg_todate">(*)</span>
                </span>
                <span id="todate_msg"></span>
            </div>
            <div>
                <label>Số lượng phòng:</label>
                <span>
                    <input type="text" id="inp_roomquantity" name="quantity" value="1"/>
                    <span class="style1" id="spanmsg_roomquantity">(*)</span>
                </span>
                <span id="roomquantity_msg"></span>
            </div>
                
            <div>
                <label>Giá phòng:</label>
                <input type="hidden" id="donViTinh" value="<%=this.roomLst.Count!=0?this.roomLst[0].DonViTinh :ncc.DonViTinh%>"/>
                <span class="orange-text" id="price">
                    <strong><%=this.roomLst.Count != 0?this.roomLst[0].Gia.ToString("##,#", System.Globalization.CultureInfo.CreateSpecificCulture("en-US")) + " "  + this.roomLst[0].DonViTinh : "O " + ncc.DonViTinh  %></strong>                    
                </span>
            </div>
        </fieldset>
        <!-- End thong tin tour -->     
        <br style="clear: left;" />
        <!-- Thong tin khach hang -->
        <fieldset class="dk_customer_info">
            <legend>Thông Tin Khách Hàng</legend>
            <div>
                <label>
                    Họ &amp; tên người liên hệ:</label>
                <input type="text" size="100" id="txtName" name="name" style="width:300px" value="<%=this.kh.HoTen %>"/>
                <span class="style1" id="spanmsg_name">(*)</span>
            </div>
            <div>
                <label>
                    Địa Chỉ:</label> 
                <input type="text" size="100" id="txtAddress" name="address" style="width:300px" value="<%=this.kh.DiaChi %>"/>
                <span class="style1" id="spanmsg_address">(*)</span>
            </div>
            <div>
                <label>
                    Địện Thọai:</label>
                <input type="text" size="20" id="txtPhone" name="phone" value="<%=this.kh.SDT %>"/>
                <span class="style1" id="spanmsg_phone">(*)</span>
            </div>
            <div>
                <label>
                    Email:</label>
                <input type="text" size="40" id="txtEmail" name="email" value="<%=this.kh.Email %>"/>
                <span class="style1" id="spanmsg_email">(*)</span>
            </div>
        </fieldset>
        <!-- End Thong tin khach hang -->
        <br style="clear: left;" />
        <!-- Submit button Div -->
        <div align="center">
            <%--<asp:Button ID="nextBut" runat="server" Text="Kế tiếp" class="button" 
                onclick="nextBut_Click" />--%>
                 <input type="submit" class="button" id="nextBut" value="Kế tiếp"/>
            <input type="reset" class="button" id="cancelBut" value="Hủy Đặt Chỗ" onclick="return home()"/>
        </div>
        <!-- End Submit button Div -->
        </form>
    </center>
</div>
<!--End frm-->
